package com.example.consumer.controller;

import com.guo.pojo.User;
import com.guo.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {

    @Reference
    private UserService service;

    @RequestMapping("/test")
    public List<User> getUser(){
        return service.getOne();
    }
}
